package com.zhdl.hardware_contact.hardware_param.service.impl;

import com.project.common.service.impl.BaseServiceImpl;
import com.zhdl.hardware_contact.hardware_param.entity.HardwareAbsPos;
import com.zhdl.hardware_contact.hardware_param.repository.HardwareAbsPosDao;
import com.zhdl.hardware_contact.hardware_param.service.HardwareAbsPosService;
import com.zhdl.hardware_contact.hardware_web.service.HardwareAbsService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Slf4j
@Service
public class HardwareAbsPosServiceImpl extends BaseServiceImpl<Integer, HardwareAbsPos, HardwareAbsPosDao> implements HardwareAbsPosService {
    @Resource
    private HardwareAbsPosDao hardwareAbsPosDao;

    @Override
    public List<HardwareAbsPos> findByHardwareId(Integer id) {
        return hardwareAbsPosDao.findByHardwareId(id);
    }

    @Override
    public void deleteByHardwareId(Integer hardwareId) {
        hardwareAbsPosDao.deleteHardwareByHardwareId(hardwareId);
    }
}
